from sanic import Sanic
from sanic.response import text, HTTPResponse
from sanic.request import Request

app = Sanic("temp")

@app.get("/")
async def main(request):
    return text("Main!")

@app.get("/foo")
async def foo_handler(request):
    return text("I said foo!")

@app.get("/typed")
async def typed_handler(request: Request) -> HTTPResponse:
    return text("Done.")